package com.isxcode.star.api.form.pojos.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
public class AddFormReq {

    @Schema(title = "表单名称", example = "测试表单")
    @NotEmpty(message = "name不能为空")
    private String name;

    @Schema(title = "数据源id", example = "sy_973933ae11d64eddb3859021a91a520f")
    @NotEmpty(message = "datasourceId不能为空")
    private String datasourceId;

    @Schema(title = "表单基于的主表", example = "users")
    private String mainTable;

    @Schema(title = "该表是自建的表还是已存在的表", example = "EXIST_TABLE 已存在的表 | CREATE_TABLE 新建的表")
    @NotEmpty(message = "createMode不能为空")
    private String createMode;

    @Schema(title = "备注", example = "备注123")
    private String remark;
}
